<?php
    include 'base.php';
    $cat_three_id = $_GET['cat_three_id'];
    $arr = Array();
    $sql = "SELECT * FROM `boncake-first` WHERE `cat_three_id`='$cat_three_id'";
    $res = $conn->query($sql);
    while ($row = mysqli_fetch_assoc($res)) {
        array_push($arr, $row);
    }
    echo json_encode($arr);
?>